Drawing.getModifiedBrush Method

Gets a brush with colors modified by the specified percentages.
 
 
Static This method is static.

Parameters

brush

Type: Brush - May be null
A brush, or null to return null.
opacityOffset

Type: Number
A percentage of the possible range of opacity values to offset by.
Optional: True
saturationOffset

Type: Number
A percentage of the possible range of saturation values to offset by.
Optional: True
brightnessOffset

Type: Number
A percentage of the possible range of brightness values to offset by.
Optional: True

Return Value


Type: Brush - May be null
The original value of brush, or a clone if a brush and modifications were specified.